var Form1=document.forms[0]

function GetFecha(i)
{
     if (i==1)
     {
         popcalendar.selectWeekendHoliday(1,1)
         popcalendar.show(Form1.TxtFechaDesde, null, "Hoy")
     }
     if (i==2)
     {
         popcalendar.selectWeekendHoliday(1,1)
         popcalendar.show(Form1.TxtFechaHasta, null, "Hoy")
     }
}

popcalendar = getCalendarInstance()
popcalendar.startAt = 1
popcalendar.showWeekNumber = 0
popcalendar.showToday = 1
popcalendar.showWeekend = 1
popcalendar.showHolidays = 1
popcalendar.selectWeekend = 1
popcalendar.selectHoliday = 1
popcalendar.addCarnival = 0
popcalendar.addGoodFriday = 0
popcalendar.language = 0
popcalendar.defaultFormat = "dd-mm-yyyy"
popcalendar.fixedX = -1
popcalendar.fixedY = -1
popcalendar.fade = .5
popcalendar.shadow = 1
popcalendar.move = 1
popcalendar.saveMovePos = 1
popcalendar.centuryLimit = 40
popcalendar.initCalendar()

